package com.array;

/**
 * @Author WaveHi
 * @Date 28/7/2021 下午 2:42
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description 演示二维数组
 */
public class ArrayInArrayDemo1 {

    public static void main(String[] args) {

        //定义二位数组
        int[][] nums;

        //静态初始化
        nums = new int[][]{{1,1321,123123,},{123,123,13,34,1}};

        //动态初始化
        nums = new int[2][3];

        //获取二维数组的元素
        System.out.println(nums[0]);
        System.out.println(nums[0][0]);

    }

}
